export interface ConversationInfoItem {
  conversation_id: number;
  user_info: UserInfo;
  another_user_info: UserInfo;
  type: ConversationType;
  user_id: number;
  staff_id: number;
  update_time: number;
  create_time: number;
  news_content: ConversationInfoItemInfoItem;
}

export interface ConversationInfoItemInfoItem {
  info_id: string;
  content: string;
  send_type: SendType;
  send_time: number;
};

export interface UserInfo {
  id: number,
  username: string,
  permission: PermissionType, // 默认为普通客户
  created_at: string,
  ticket_number: number,
  efficient_ticket_number: number,
  score: number,
};

export enum PermissionType {
  manager = 1,
  staff = 2,
  customer = 3,
}

export enum SendType {
  Text = 1,
  Img = 2,
  Evaluate = 10,
}

export enum ConversationType {
  End = 1,
  Serving = 2,
  Waiting = 3,
}

export interface ConversationInfoListItemType {
  conversation_id: string;
  info_id: number;
  content: string;
  send_type: SendType;
  send_time: number;
  send_user: UserInfo;
};